package com.example.demo.service.impl;

import com.example.demo.mapper.UserMapper;
import com.example.demo.pojo.User;
import com.example.demo.service.UserService;
import com.example.demo.utill.ResponseResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User selectUser(String uname, String psd) {
        return userMapper.selectUser(uname,psd);
    }

    @Override
    public int insertUser(String uname, String psd,String email) {
        return userMapper.insertUser(uname,psd,email);
    }

    @Override
    public User selectName(String uname) {
        return userMapper.selectName(uname);
    }
}
